//
//  UILabel+someMethods.m
//  BKJ
//
//  Created by 吴涛 on 15/12/16.
//  Copyright © 2015年 贝壳家iOS. All rights reserved.
//

#import "UILabel+someMethods.h"

@implementation UILabel (someMethods)


+ (UILabel *)labelWithFont:(UIFont *)font textColor:(UIColor *)color text:(NSString *)text{
  UILabel *label = [UILabel new];
  if (text != nil) {
    label.text = text;
  }
  if (font != nil) {
    label.font = font;
  }
  if (color != nil) {
    label.textColor = color;
  }
  
  
  return label;
}


+ (UILabel *)labelWithFont:(UIFont *)font textColor:(UIColor *)color{
  return [UILabel labelWithFont:font textColor:color text:nil];
}

+ (UILabel *)labelWithFontSize:(CGFloat)font textColor:(UIColor *)color{
  return [UILabel labelWithFont:[UIFont systemFontOfSize:font] textColor:color];
}

+ (UILabel *)labelWithFontSize:(CGFloat)font textColor:(UIColor *)color text:(NSString *)text{
  return [UILabel labelWithFont:[UIFont systemFontOfSize:font] textColor:color text:text];
}

+ (UILabel *)labelwithBoldFontSize:(CGFloat)font textColor:(UIColor *)color text:(NSString *)text{
  return [UILabel labelWithFont:[UIFont boldSystemFontOfSize:font] textColor:color text:text];
}



@end
